]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Revert "messageTray: Don't show the context-menu when the tray isn't open"
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 15 Apr 2013 16:50:56 +0000 (12:50 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 19 Apr 2013 17:38:41 +0000 (13:38 -0400)
This reverts commit 1bce210c516215ceb78a8b37833ab8140476b959.

js/ui/messageTray.js

index 49c8037ab65af25fd3758700b12f1f5abf4ca6bc..3786928669dbe419af8dd214a1ae3c1a967d5138 100644 (file)
@@ -1722,9 +1722,6 @@ const MessageTray = new Lang.Class({
         this.actor.add_action(clickAction);
 
         clickAction.connect('clicked', Lang.bind(this, function(action) {
-            if (this._trayState != State.SHOWN)
-                return;
-
             let button = action.get_button();
             if (button == 3)
                 this._openContextMenu();
@@ -1735,7 +1732,7 @@ const MessageTray = new Lang.Class({
         clickAction.connect('long-press', Lang.bind(this, function(action, actor, state) {
             switch (state) {
             case Clutter.LongPressState.QUERY:
-                return this._trayState == State.SHOWN;
+                return true;
             case Clutter.LongPressState.ACTIVATE:
                 this._openContextMenu();
             }